package com.example.demo.controller;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;

/**
 * @description:
 * @author: Andrew
 * @create: 2019-03-05 14:24
 **/

@CrossOrigin
@RestController
@RequestMapping("/test")
@Api(tags = "测试类",value = "测试类")
public class HelloController {
    @ApiOperation(value="【PC端】提交订单", notes="提交一组识别的标签id，返回生成的订单详情")
    @RequestMapping(value = "/test/{id}", method = RequestMethod.POST, produces  = "application/json;charset=UTF-8")
    public String test(@PathVariable String id) {
        System.out.println(id);
        return "hello "+ id;

    }

}
